//
//  SEGRegisterLeftView.h
//  Login
//
//  Created by 梁昆 on 16/8/16.
//  Copyright © 2016年 segiK. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Commom/UITextField+Limit.h>
#import <Commom/SEGSafaKeyboard.h>
#import <Commom/SEGPasswordTextField.h>

@protocol RegiserProtocol <NSObject>

- (void)nextClick:(NSDictionary*)params;    //完成按钮的点击代理方法
- (void)freshCheckImg;  //更新验证码
- (void)getMessage:(NSDictionary*)params;   //获取验证码
- (void)getSoundMessageWithTel:(NSString*)tel type:(NSString*)type; //获取语音验证码
- (void)GotoLogin;  //提示用户，去登陆
- (void)goBackBtnToLoginClick;  //注册页返回到登录页
@end

@interface SEGRegisterLeftView : UIView
/*
 注册代理
 */
@property (nonatomic, assign) id<RegiserProtocol> delegate;
/*
 注册标题
 */
@property (nonatomic, strong)UILabel *titleRegister;
/*
 返回按钮
 */
@property (nonatomic, strong)UIButton *goBackBtn;
/*
 分隔线
 */
@property (nonatomic, strong) UIView* line1View;
@property (nonatomic, strong) UIView* line2View;
@property (nonatomic, strong) UIView* line3View;
@property (nonatomic, strong) UIView* line4View;
/*
 清楚手机号码按钮
 */
@property (nonatomic, strong) UIButton* cleanPhoneButton;
/*
 获取验证码按钮
 */
@property (nonatomic, strong) UIButton* getMessButton;
/*
 下一步按钮
 */
@property (nonatomic, strong) UIButton* nextButton;
/*
 手机号码
 */
@property (nonatomic, strong) UITextField* phoneText;
/*
 图片验证码
 */
@property (nonatomic, strong) UITextField* checkImgText;
/*
 获取验证视图
 */
@property (nonatomic, strong) UIImageView* checkImgView;
/*
 重新获取验证码按钮
 */
@property (nonatomic, strong) UIButton* freshCheckImgBtn;
/*
 输入验证码
 */
@property (nonatomic, strong) UITextField* checkText;
/*
 密码
 */
@property (nonatomic, strong) SEGPasswordTextField* passwordText;
/*
 获取语音验证码提示
 */
@property (nonatomic, strong) UILabel* getSoundMsgLabel;
/*
 获取语音验证码按钮
 */
@property (nonatomic, strong) UIButton* getSoundMsgButton;
/*
 去登录提示
 */
@property (nonatomic, strong)UIButton *gotoLogin;

@property (nonatomic, copy) NSString* code;

@property (nonatomic, strong) UILabel *passwordRuleLabel;

//计时器发送验证码
- (void)sentPhoneCodeTimeMethod;
@end
